package com.lbd.common.validate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @ProjectName: gulimall
 * @Package: com.lbd.common.validate
 * @ClassName: ListValue
 * @Author: linbd
 * @Description:
 * @Date: 2021/6/14 21:29
 */
@Documented
@Constraint(
        validatedBy = {ShowStatusValidator.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ListValue {
    String message() default "{com.lbd.common.validate.ListValue.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

    int[] vals() default {};
}
